package com.qcby.dao;

import com.qcby.model.ScreeningOrganize;
import com.qcby.model.dto.OrganizeVo;
import com.qcby.query.ScreeningOrganizeQuery;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;


public interface ScreeningOrganizeMapper extends BaseDao<ScreeningOrganizeQuery, ScreeningOrganize> {


    List<OrganizeVo> selectCondition(@Param("cid") Integer cid, @Param("hid") Integer hid,
                                     @Param("mid") Integer mid, @Param("day") String day, @Param("now") Timestamp now,
                                     @Param("startNum") Integer startNum, @Param("pageSize") Integer pageSize);

    Integer selectConditionCount(@Param("cid") Integer cid, @Param("hid") Integer hid,
                                 @Param("mid") Integer mid, @Param("day") String day, @Param("now") Timestamp now);

    List<OrganizeVo> selectCondition2(@Param("cid") Integer cid, @Param("hid") Integer hid,
                                      @Param("mid") Integer mid, @Param("startNum") Integer startNum,
                                      @Param("pageSize") Integer pageSize);

    Integer selectConditionCount2(@Param("cid") Integer cid, @Param("hid") Integer hid,
                                  @Param("mid") Integer mid);

    OrganizeVo selectById(@Param("soId") Integer soId);

    void updateLeftSeat(@Param("soId") Integer soId);
}
